<%@ Page Language="C#" Inherits="Castle.MonoRail.Views.AspView.ViewAtDesignTime<IPostView>" %>
<%@ Import namespace="KenEgozi.Com.Domain.Aggregates.Tag"%>
<%@ Import namespace="KenEgozi.Com.Weblog.Interfaces"%>

	<entry>
		<title><%=view.Post.Title %></title>

		<link rel="alternate" type="text/html" href="~~/<%=view.Post.Permalink %>" />
		<id>~~/<%=view.Post.Permalink%></id>
		<published><%=view.DateTimeHelper.ToUTC(view.Post.Lifecycle.CreationDate)%></published>
		<updated><%=view.DateTimeHelper.ToUTC(view.Post.Lifecycle.UpdateDate)%></updated>
		<% foreach (Tag tag in view.Post.Tags) { %>
		<category
			term="<%=tag.UrlFriendlyName %>"
			label="<%=tag.Name %>"
			scheme="~~/Tag/<%=tag.UrlFriendlyName%>.aspx" />
		<% } %>
		<content type="html"><![CDATA[<%=view.Post.Content %>]]></content>
	</entry>
